﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="C7.CurrentUser"
	x:Name="CurrentUserControl"
	d:DesignWidth="85" d:DesignHeight="85" Margin="4,0,0,0" MouseDown="CurrentUserControl_MouseDown">
	<UserControl.Resources>
		<Storyboard x:Key="sbTextFadeIn">
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tbUserName" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="White"/>
			</ColorAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="{x:Null}" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tbUserName" Storyboard.TargetProperty="(TextElement.Background).(SolidColorBrush.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#7F000000"/>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="sbTextFadeOut">
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tbUserName" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="Transparent"/>
			</ColorAnimationUsingKeyFrames>
			<ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tbUserName" Storyboard.TargetProperty="(TextElement.Background).(SolidColorBrush.Color)">
				<SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="#00000000"/>
			</ColorAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="Mouse.MouseEnter">
			<BeginStoryboard Storyboard="{StaticResource sbTextFadeIn}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave">
			<BeginStoryboard x:Name="sbTextFadeOut_BeginStoryboard" Storyboard="{StaticResource sbTextFadeOut}"/>
		</EventTrigger>
	</UserControl.Triggers>

	<Grid x:Name="LayoutRoot">
		<Border x:Name="bdrCurrentUser" BorderBrush="{DynamicResource BorderBrush1}" CornerRadius="2">
		<Image x:Name="imgCurrentUser" Source="/C7;Component/Resources/Graphics/Samples/Sample (3).png"/>
		</Border>
		<Viewbox HorizontalAlignment="Left" VerticalAlignment="Center" Stretch="Fill">
		
			<TextBlock x:Name="tbUserName" Text="User Name" FontFamily="/C7;Component/Resources/Fonts/#Zegoe Caps" FontSize="29.333" TextWrapping="WrapWithOverflow" Width="79" Height="79" Background="#00000000">
				<TextBlock.Foreground>
					<SolidColorBrush/>
				</TextBlock.Foreground>
			</TextBlock>
		</Viewbox>
	</Grid>
</UserControl>